package com.ushine.design.design.c_behavioral_pattern.a_chain_of_responsibility.a_practice;

/**
 * 具体处理者
 *
 * @author yls
 */
public class ConcreteHandlerA extends Handler {

    @Override
    public void handleRequest(String request) {
        if (false) {//如果满足条件
            //处理请求
        } else {
            System.out.println("A无权限处理，传递给B。");
            this.successor.handleRequest(request);
        }

    }
}
